﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyAnimelistRecommender.wAnime.View.Widget
{
    internal class WidgetPresenter : IWidgetPresenter
    {
        #region private members

        #endregion private members

        #region public members

        #endregion public members

        #region constructors

        /// <summary>
        /// creates and initializes a new <see cref="WidgetPresenter"/> class
        /// </summary>
        /// <param name="view">the widget view</param>
        public WidgetPresenter(IWidgetView view)
        {
            if (view == null)
            {
                throw new ArgumentNullException("view");
            }

            View = view;
            View.Presenter = this;
        }

        #endregion constructors

        #region private methods

        #endregion private methods

        #region protected methods

        #endregion protected methods

        #region public methods

        #endregion public methods

        #region IPresenter<IWidgetView> Members

        /// <summary>
        /// Gets the view
        /// </summary>
        public IWidgetView View
        {
            get;
            private set;
        }

        #endregion IPresenter<IWidgetView> Members
    }
}